const tokenkry = 'top-line-token'
const saveToken = tokenObj => {
  window.localStorage.setItem(tokenkry, JSON.stringify(tokenObj))
}
const removeItem = () => {
  window.localStorage.removeItem(tokenkry)
}
const getToken = () => {
  return JSON.parse(window.localStorage.getItem(tokenkry))
}

export {
  saveToken,
  removeItem,
  getToken
}
